class CreateArticles < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
      t.integer :article_type,:limit=>1
      t.string :title,:limit=>50
      t.text :content
      t.string :image_url
      t.integer :sort_order,:limit=>2
      t.boolean :top
      t.boolean :active,:default=>true

      t.timestamps
    end
  end

  def self.down
    drop_table :articles
  end
end
